package work3.work5;

import Uti.ScannerUti;

import java.io.Serializable;

public class Student implements Serializable {
    String Id;
    String name;
    Integer age;

    public Student() {

    }

    public Student(String Id, String name, Integer age) {
        this.Id = Id;
        this.name = name;
        this.age = age;
    }

    /**
     * 获取
     * @return Id
     */
    public String getId() {
        return Id;
    }

    /**
     * 设置
     * @param Id
     */
    public void setId(String Id) {
        this.Id = Id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    public String toString() {
        return "Id = " + Id + ", name = " + name + ", age = " + age ;
    }
}
